package com.sofwin.service;

import com.github.pagehelper.PageInfo;
import com.sofwin.pojo.SRole;

import java.util.List;
import java.util.Map;

/**
 * @PackageName:com.sofwin.service
 * @author:andyLiu
 * @DateTime:2020/12/25 15:44
 * @Description:[TODO]输入当前模块作用
 **/
public interface RoleService {
    /**
     * 查询所有角色
     * @return
     */
    List<SRole> queryRoles();

    PageInfo<SRole> queryRoleByPage(SRole role, Integer pageNumber);

    Map saveRole(SRole role);

    SRole selectOneById(SRole role);

    boolean deleteRoleById(Integer[] ids);
}
